package bean.wjs.spring.Bean;

import java.util.Arrays;
import java.util.Map;
import java.util.Properties;

public class Man {
    private String name;
    //简单数据类型
    private String[] hobby;
    //非简单数据类型
    private Friend[] friend;

    private Map<String,Integer> phones;

    private Properties properties;

    public Friend[] getFriend() {
        return friend;
    }

    public void setFriend(Friend[] friend) {
        this.friend = friend;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public Map<String, Integer> getPhones() {
        return phones;
    }

    public void setPhones(Map<String, Integer> phones) {
        this.phones = phones;
    }

    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    @Override
    public String toString() {
        return "Man{" +
                "name='" + name + '\'' +
                ", hobby=" + Arrays.toString(hobby) +
                ", friend=" + Arrays.toString(friend) +
                ", phones=" + phones +
                ", properties=" + properties +
                '}';
    }
}
